package com.sunwayhorizo.health.hl7.vocabulary;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import com.sunwayhorizo.health.hl7.common.VersionInfo;
import com.sunwayhorizo.health.hl7.datatypes.CS;
import com.sunwayhorizo.health.hl7.datatypes.common.InternalFactory;

@SuppressWarnings({ "unchecked", "rawtypes" })
public class RoleCode {

	public static final String RCS_ID = "$Header: RoleClass.java 1.0 2006/07/29 06:51:34 rassubra noship $";
	public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: RoleClass.java 1.0 2006/07/29 06:51:34 rassubra noship $", "com.sunwayhorizo.health.hl7.vocabulary");
	public static CS NATURE;                    //自然角色
	public static CS FAMILY;                    //家庭角色
	public static CS PATIENT;                   //患者角色
	public static CS EMPLOYEE;                  //员工角色
	public static CS TEMPCLASS;                     //电子病历模板类型
	public static CS TEMPFILE;                      //电子病历模板文件
	
	public static CS SYSROLE;                       //系统角色
	public static CS SYSORG;                        //系统组织
	public static CS ROLERGRP;						//角色资源
	
	public static CS ACCOUNTWORKGROUP;              //账号工作组
	public static CS ACCOUNTROLE;                   //账号角色
	
	public static CS WORKGROUPROLE;                 //工作组角色
	
	public static CS HOSPITAL;						//机构   
	public static CS DEPARTMENT;					//科室
	public static CS WORKGROUP;				    	//工作组
	
	public static CS EMRCLASS;						//电子病历模板文件
	public static CS EMRTEMPCLASS;                  //电子病历与模板文件
	
	public static CS THREELEVELSPHYSICIAN;          //三级医师
	
	public static CS MEDICALTEAM;                   //医疗小组
	public static CS MENU;
	

	/**----------------------PLC----------------------**/
	public static CS BED;						//床位
	public static CS ROOM;						//房间
	
	
	public static CS DRUG;                      //药品
	
	
	private static final CS values[]; 
	public static final Set ALL_VALUES;
	public RoleCode()
    {
    }
	static 
	{
		    NATURE= InternalFactory.newCS("NATURE");
		    MENU = InternalFactory.newCS("MENU");
	        FAMILY= InternalFactory.newCS("FAMILY");
	        PATIENT= InternalFactory.newCS("PATIENT");
	        EMPLOYEE= InternalFactory.newCS("DOCTOR");
	        TEMPCLASS = InternalFactory.newCS("TEMPCLASS");
			TEMPFILE = InternalFactory.newCS("TEMPFILE");
			SYSROLE = InternalFactory.newCS("SYSROLE");
			SYSORG = InternalFactory.newCS("SYSORG");
			ACCOUNTWORKGROUP = InternalFactory.newCS("ACCOUNTWORKGROUP");
			ACCOUNTROLE = InternalFactory.newCS("ACCOUNTROLE");
			ROLERGRP = InternalFactory.newCS("ROLERGRP");
			WORKGROUPROLE = InternalFactory.newCS("WORKGROUPROLE");
			EMRCLASS = InternalFactory.newCS("EMRCLASS");
			EMRTEMPCLASS = InternalFactory.newCS("EMRTEMPCLASS");
			HOSPITAL = InternalFactory.newCS("HOSPITAL");
			DEPARTMENT = InternalFactory.newCS("DEPARTMENT");
			WORKGROUP = InternalFactory.newCS("WORKGROUP");
			THREELEVELSPHYSICIAN = InternalFactory.newCS("THREELEVELSPHYSICIAN");
			MEDICALTEAM = InternalFactory.newCS("MEDICALTEAM");
			BED = InternalFactory.newCS("BED");
			ROOM = InternalFactory.newCS("ROOM");
			MENU = InternalFactory.newCS("MENU");
			DRUG = InternalFactory.newCS("DRUG");
	        values = (new CS[] {
		           NATURE,FAMILY,PATIENT,EMPLOYEE,TEMPCLASS,TEMPFILE,SYSORG,SYSROLE,ACCOUNTWORKGROUP,ROLERGRP,ACCOUNTROLE,WORKGROUPROLE,EMRCLASS,EMRTEMPCLASS,
		           HOSPITAL,DEPARTMENT ,WORKGROUP,THREELEVELSPHYSICIAN,MEDICALTEAM,BED,ROOM,MENU,DRUG });
	        ALL_VALUES = new HashSet(Arrays.asList(values));
	}
	 
	       
}
